   <include file="Public:top" />        
     <script>
        $(function() {
          $( "#datepicker" ).datepicker({dateFormat: "yy-mm-dd"});	
		  $( "#sub_tabs" ).tabs();  
        });	
		function delImages()
		{
			  $("#image").html('');
			  $("input[name=del_iamge]").val("true");			  
		} 
		$(function(){
			  $('.content-box .content-box-content div.tab-content').hide(); // Hide the content divs
			  $('ul.content-box-tabs li a.default-tab').addClass('current'); // Add the class "current" to the default tab
			  $('.content-box-content div.default-tab').show(); // Show the div with class "default-tab"
			  
			  $('.content-box ul.content-box-tabs li a').click( // When a tab is clicked...
				  function() { 				  
				  
					 var insertId = $(this).attr("href").substring($(this).attr("href").length-1);
					 var url = $(".insert a").attr("href").replace(/room\/\d/,"room/"+insertId);
					 $(".insert a").attr("href", url);				
					  
					  $(this).parent().siblings().find("a").removeClass('current'); // Remove "current" class from all tabs
					  $(this).addClass('current'); // Add class "current" to clicked tab
					  var currentTab = $(this).attr('href'); // Set variable "currentTab" to the value of href of clicked tab
					  $(currentTab).siblings().hide(); // Hide all content divs
					  $(currentTab).show(); // Show the content div with the id equal to the id of clicked tab
					  return false; 
				  }
			  );
		});
	</script>  

	</head>
  
	<body>
    
    

    

    
    <div id="body-wrapper" > <!-- Wrapper for the radial gradient background -->		

        <!--left start-->
		
        <include file="Public:left" /> 
        <!--left end-->
        
        
        <!-- End #sidebar -->			
		<div id="main-content"> <!-- Main Content Section with everything -->
        <div  id="header_logo">{:C("SITE_INFO.name")}</div>	 		
			
			<!-- Page Head -->
			<div style="float:left;">
              <h2><if condition="tep_not_null($titleArr[1])">{$titleArr[1]} <else /> 新增公告</if></h2>
            </div>
			<div class="clear"></div> <!-- End .clear -->           
                <!-- Insert -->
                <form action="{:U($action)}" name="editForm" method="post" enctype="multipart/form-data" >
                 <input type="hidden" name="editId" value="{$editId}" >		
                <div class="content-box">				
                    <div class="content-box-header">  
                                     
                          <ul class="content-box-tabs">			
                                      
                              <li><a href="#tab1" id="menu1" class="default-tab current" style="text-transform:capitalize">General</a></li>	 
                              <li><a href="#tab2" id="menu2" style="text-transform:capitalize">Data</a></li>	       
                                                          
                          </ul>	 
                           
                         <span class="insert" style=" float:right; line-height:40px; font-size:14px; font-weight:bold;"><a href="{:U('index')}">List </a>&nbsp; &nbsp; </span>                        	
                      <div class="clear"></div>					
                    </div>
                    
                   
                    <div class="content-box-content">	                     
                       
                        <div class="tab-content default-tab" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->	                            
                             
                             <div id="sub_tabs">                               
                               	  <ul>
                                    <volist name="lang" id="vo" key="k" >                                    
                                    	<li><a href="#tabs2-{$vo.value}"><img src="__PUBLIC__/images/{$vo.value}_icon.gif"> {$vo.txt}</a></li>
                                    </volist>   
                                 </ul>
                           
                               
                                <volist name="langList" id="vo" key="k" >         
                                	<div class="tabs" id="tabs2-{$vo}">                                    
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="editContent">
                                      <tr>
                                        <td class="fieldText">标题:</td><td><input class="text-input small-input" value="{$titleArr[$k]}" style="width:590px!important"  type="text" id="news_title_{$k}" name="news_title_{$k}" /></td>
                                      </tr>
                                      <tr>  
                                        <td  class="fieldText" style="vertical-align:top;">内容:</td><td> <textarea style="height:300px;width:590px!important" class="page_description HTMLeditor" name="news_description_{$k}">{$descArr[$k]}</textarea></td>
                                      </tr>
                                    </table>    
                                    </div>                                         
                                 </volist>   
                              </div> 
                           </div>  
                             
                                          
                       <!-- End #tab1 --> 
                       <div class="tab-content" id="tab2">
                       	 <p>
                              <label>置顶:<input type="checkbox" style="vertical-align:middle" name="top_flag"  value="1" <if condition="$listInfo['top_flag'] eq 1">checked="checked"</if>/></label>
                         </p> 
                       	 <p>
                              <label>状态:<input type="checkbox" style="vertical-align:middle" name="news_status"  value="1" <if condition="$listInfo['news_status'] eq 1">checked="checked"</if>/></label>
                         </p>    
                        <p>
                          <label>排序:&nbsp;</label>  
                          <input class="text-input small-input"  type="text" name="sort_order"  value="{$listInfo.sort_order}" />                                                                
                        </p>   
                        
                        <p>
                          <label>日期:&nbsp;</label>  
                          <input class="text-input small-input"  type="text" id="datepicker" name="news_added"  value="{$addDate|strtotime|date='Y-m-d',###}" />                                                                
                        </p>                                     
                                          
                        
                        <p>
                          <label>图片:&nbsp;<input type="file" id="news_image" name="news_image"></label>                              
                          {$imageShow}                                      
                        </p>
                        <p>
                        	 <label>浏览次数:&nbsp;{$listInfo.viewd}</label>  
                        </p>
                        
                       <!--  <p>
                          <label>Image Description:</label>                             
                          <volist name="langList" id="vo" key="k" >
                            <p>
                                <img src="__PUBLIC__/images/{$vo}_icon.gif"> 
                                <input class="text-input small-input" value="{$iDescArr[$k]}" style="width:590px!important"  type="text" id="image_description_{$k}" name="image_description_{$k}" /> 
                            </p>
                          </volist>                                             
                        </p> -->
                       </div>                         
                    </div>
                       
                
                </div>                 
                <!--End Insert -->
                 <div class="clear"></div>
                            <input class="button" style="text-transform:capitalize" type="submit" name="BtnSave"  value="{$actionName}" />&nbsp;&nbsp;
                            <input class="button" type="button" name="back" onClick="window.location.href='{:U('index')}'"  value="Back" />    
			</form>
			
			<div class="clear"></div>
			
			
			<!-- Start Notifications -->
			
			

			
			<!-- End Notifications -->
			
            <div id="footer">
				<small> <!-- Remove this notice or replace it with whatever you want -->
						&#169; Copyright 2013
				</small>
			</div>
			
			
			
			<!-- End #footer -->
			
		</div> <!-- End #main-content -->
		
	</div>
	
	
	
	</body>
<!-- Download From www.exet.tk-->
</html>

		

